import styled from "styled-components";

export const EmojiContainer = styled.div`
  width: 200px;
  height: 200px;
  overflow: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;

  img {
    cursor: pointer;
    transition: 200ms;
    box-sizing: border-box;
    width: 30px;
    padding: 2px;
    display: block;

    &:hover {
      border: 2px solid grey;
      border-radius: 4px;
    }
  }
`;

export const Wrapper = styled.div`
  height: 200px;
  background: whitesmoke;
  position: relative;
  box-shadow: 0px 5px 7px 5px lightgrey;

  img {
    display: inline-block;
  }

  .reply-area {
    &__summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px;
      font-size: 12px;

      &__left,
      &__right {
        display: flex;
        align-items: center;
      }

      &__left {
        > * {
          margin-right: 10px;
        }
      }

      &__right {
        > * {
          margin-left: 10px;
        }
      }

      .switch-button {
        width: 20px;
        height: 20px;
        border-radius: 20px;
        background: black;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 200ms;
        cursor: pointer;

        &:hover {
          opacity: 0.8;
        }
      }
    }

    &__receiver,
    &__sender {
      display: flex;
      align-items: center;
    }

    &__main {
      &-wrapper {
        padding: 0 10px 10px 10px;
        height: 160px;
        position: relative;
      }

      position: relative;
      height: 100%;
      background: white;
      border: 1px solid hsl(var(--border));
    }

    &__editor-controller {
      padding: 0 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 4px;
      height: 30px;
    }

    &__action-list {
      display: flex;
      align-items: center;
      margin-right: 10px;
    }

    &__control-list {
      display: flex;
      flex-direction: row-reverse;
      align-items: center;

      > * {
        margin-left: 10px;
      }
    }

    &__editor {
      height: calc(100% - 40px);
      padding-bottom: 4px;
      border: none;
    }

    &__disable-mask {
      width: 100%;
      height: 100%;
      position: absolute;
      top: 0;
      left: 0;
      background: rgba(0, 0, 0, 0.2);
      color: grey;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }
`;
